import 'package:dailoz/generated/json/base/json_convert_content.dart';
import 'package:dailoz/response_json_entity.dart';

ResponseJsonEntity $ResponseJsonEntityFromJson(Map<String, dynamic> json) {
  final ResponseJsonEntity responseJsonEntity = ResponseJsonEntity();
  final int? code = jsonConvert.convert<int>(json['code']);
  if (code != null) {
    responseJsonEntity.code = code;
  }
  final String? message = jsonConvert.convert<String>(json['message']);
  if (message != null) {
    responseJsonEntity.message = message;
  }
  final dynamic data = jsonConvert.convert<dynamic>(json['data']);
  if (data != null) {
    responseJsonEntity.data = data;
  }
  return responseJsonEntity;
}

Map<String, dynamic> $ResponseJsonEntityToJson(ResponseJsonEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['code'] = entity.code;
  data['message'] = entity.message;
  data['data'] = entity.data;
  return data;
}
